package cn.edu.nju.oraldefense.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import cn.edu.nju.oraldefense.dao.DefenseDao;
import cn.edu.nju.oraldefense.model.Defense;
import cn.edu.nju.oraldefense.service.DefenseService;

@Component("defenseService")
public class DefenseServiceImpl implements DefenseService{
	private DefenseDao defenseDao;

	public DefenseDao getDefenseDao() {
		return defenseDao;
	}

	@Resource
	public void setDefenseDao(DefenseDao defenseDao) {
		this.defenseDao = defenseDao;
	}

	public void addDefense(Defense d) {
		defenseDao.save(d);
	}
}
